package com.neugh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Comm implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "commId", type = IdType.AUTO)
    private Integer commId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户发布图片
     */
    private String commImg;

    /**
     * 用户发布内容
     */
    private String commContent;

    /**
     * 发布时间
     */
    private String commTime;

    /**
     * 点赞
     */
    private String commLike;

    /**
     * 评论
     */
    private String commEnt;

    /**
     * 评论外键
     */
    private Integer judgeId;

    @TableField
    public String userName;  //逻辑字段  用户名称

    @TableField
    public String userHead; //逻辑字段  用户头像

    @TableField
    public String judgeContent;


    public static final String COMMID = "commId";

    public static final String USERID = "userId";

    public static final String COMMIMG = "commImg";

    public static final String COMMCONTENT = "commContent";

    public static final String COMMTIME = "commTime";

    public static final String COMMLIKE = "commLike";

    public static final String COMMENT = "commEnt";

    public static final String JUDGEID = "judgeId";

}
